/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ms.jasim.model.util;

import ms.jasim.framework.IValueProvider;
import ms.jasim.model.*;
import ms.jasim.model.items.ActorItem;
import ms.jasim.model.items.GoalItem;
import ms.jasim.model.items.IntItem;
import ms.jasim.model.items.Item;
import ms.jasim.model.items.ItemList;
import ms.jasim.model.items.TextItem;
import ms.utils.IModelObjectList;
import ms.utils.INamedItem;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides
 * an adapter <code>createXXX</code> method for each class of the model. <!--
 * end-user-doc -->
 * @see ms.jasim.model.ModelPackage
 * @generated
 */
public class ModelAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * @generated
	 */
	protected static ModelPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc --> <!--
	 * end-user-doc -->
	 * @generated
	 */
	public ModelAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = ModelPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc --> This implementation returns <code>true</code> if
	 * the object is either the model's package or is an instance object of the
	 * model. <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods. <!--
	 * begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */
	protected ModelSwitch<Adapter> modelSwitch = new ModelSwitch<Adapter>() {
			@Override
			public Adapter caseModelObject(ModelObject object) {
				return createModelObjectAdapter();
			}
			@Override
			public Adapter caseNamedModelObject(NamedModelObject object) {
				return createNamedModelObjectAdapter();
			}
			@Override
			public Adapter caseJasimModel(JasimModel object) {
				return createJasimModelAdapter();
			}
			@Override
			public Adapter caseJasimTemplate(JasimTemplate object) {
				return createJasimTemplateAdapter();
			}
			@Override
			public Adapter caseCustomizableObject(CustomizableObject object) {
				return createCustomizableObjectAdapter();
			}
			@Override
			public Adapter caseActor(Actor object) {
				return createActorAdapter();
			}
			@Override
			public Adapter caseGoal(Goal object) {
				return createGoalAdapter();
			}
			@Override
			public Adapter caseGoalRequest(GoalRequest object) {
				return createGoalRequestAdapter();
			}
			@Override
			public Adapter caseDependency(Dependency object) {
				return createDependencyAdapter();
			}
			@Override
			public Adapter caseDecomposition(Decomposition object) {
				return createDecompositionAdapter();
			}
			@Override
			public Adapter caseCapability(Capability object) {
				return createCapabilityAdapter();
			}
			@Override
			public Adapter caseEvaluatorList(EvaluatorList object) {
				return createEvaluatorListAdapter();
			}
			@Override
			public Adapter caseEvaluator(Evaluator object) {
				return createEvaluatorAdapter();
			}
			@Override
			public Adapter caseActorList(ActorList object) {
				return createActorListAdapter();
			}
			@Override
			public Adapter caseGoalList(GoalList object) {
				return createGoalListAdapter();
			}
			@Override
			public Adapter caseIActorList(IModelObjectList<Actor> object) {
				return createIActorListAdapter();
			}
			@Override
			public Adapter caseIGoalList(IModelObjectList<Goal> object) {
				return createIGoalListAdapter();
			}
			@Override
			public Adapter caseIItemList(IModelObjectList<Item> object) {
				return createIItemListAdapter();
			}
			@Override
			public Adapter caseIEvaluatorList(IModelObjectList<Evaluator> object) {
				return createIEvaluatorListAdapter();
			}
			@Override
			public Adapter caseINamedItem(INamedItem object) {
				return createINamedItemAdapter();
			}
			@Override
			public Adapter caseIValueProvider(IValueProvider object) {
				return createIValueProviderAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.ModelObject <em>Object</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.ModelObject
	 * @generated
	 */
	public Adapter createModelObjectAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.NamedModelObject <em>Named Model Object</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.NamedModelObject
	 * @generated
	 */
	public Adapter createNamedModelObjectAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '
	 * {@link ms.jasim.model.JasimModel <em>Jasim Model</em>}'. <!--
	 * begin-user-doc --> This default implementation returns null so that we
	 * can easily ignore cases; it's useful to ignore a case when inheritance
	 * will catch all the cases anyway. <!-- end-user-doc -->
	 * 
	 * @return the new adapter.
	 * @see ms.jasim.model.JasimModel
	 * @generated
	 */
	public Adapter createJasimModelAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.JasimTemplate <em>Jasim Template</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.JasimTemplate
	 * @generated
	 */
	public Adapter createJasimTemplateAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.CustomizableObject <em>Customizable Object</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.CustomizableObject
	 * @generated
	 */
	public Adapter createCustomizableObjectAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.Actor <em>Actor</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore
	 * cases; it's useful to ignore a case when inheritance will catch all the
	 * cases anyway. <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.Actor
	 * @generated
	 */
	public Adapter createActorAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.Goal
	 * <em>Goal</em>}'. <!-- begin-user-doc --> This default implementation
	 * returns null so that we can easily ignore cases; it's useful to ignore a
	 * case when inheritance will catch all the cases anyway. <!-- end-user-doc
	 * -->
	 * 
	 * @return the new adapter.
	 * @see ms.jasim.model.Goal
	 * @generated
	 */
	public Adapter createGoalAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.GoalRequest <em>Goal Request</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.GoalRequest
	 * @generated
	 */
	public Adapter createGoalRequestAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.Dependency <em>Dependency</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.Dependency
	 * @generated
	 */
	public Adapter createDependencyAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '
	 * {@link ms.jasim.model.Decomposition <em>Decomposition</em>}'. <!--
	 * begin-user-doc --> This default implementation returns null so that we
	 * can easily ignore cases; it's useful to ignore a case when inheritance
	 * will catch all the cases anyway. <!-- end-user-doc -->
	 * 
	 * @return the new adapter.
	 * @see ms.jasim.model.Decomposition
	 * @generated
	 */
	public Adapter createDecompositionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.Capability <em>Capability</em>}'.
	 * <!-- begin-user-doc
	 * --> This default implementation returns null so that we can easily ignore
	 * cases; it's useful to ignore a case when inheritance will catch all the
	 * cases anyway. <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.Capability
	 * @generated
	 */
	public Adapter createCapabilityAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.Evaluator <em>Evaluator</em>}'.
	 * <!-- begin-user-doc
	 * --> This default implementation returns null so that we can easily ignore
	 * cases; it's useful to ignore a case when inheritance will catch all the
	 * cases anyway. <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.Evaluator
	 * @generated
	 */
	public Adapter createEvaluatorAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '
	 * {@link ms.jasim.model.ActorList <em>Actor List</em>}'. <!--
	 * begin-user-doc --> This default implementation returns null so that we
	 * can easily ignore cases; it's useful to ignore a case when inheritance
	 * will catch all the cases anyway. <!-- end-user-doc -->
	 * 
	 * @return the new adapter.
	 * @see ms.jasim.model.ActorList
	 * @generated
	 */
	public Adapter createActorListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.model.GoalList <em>Goal List</em>}'.
	 * <!-- begin-user-doc
	 * --> This default implementation returns null so that we can easily ignore
	 * cases; it's useful to ignore a case when inheritance will catch all the
	 * cases anyway. <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.model.GoalList
	 * @generated
	 */
	public Adapter createGoalListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '
	 * {@link ms.jasim.model.EvaluatorList <em>Evaluator List</em>}'. <!--
	 * begin-user-doc --> This default implementation returns null so that we
	 * can easily ignore cases; it's useful to ignore a case when inheritance
	 * will catch all the cases anyway. <!-- end-user-doc -->
	 * 
	 * @return the new adapter.
	 * @see ms.jasim.model.EvaluatorList
	 * @generated
	 */
	public Adapter createEvaluatorListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link IModelObjectList<Actor> <em>IActor List</em>}'.
	 * <!-- begin-user-doc --> This default
	 * implementation returns null so that we can easily ignore cases; it's
	 * useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see IModelObjectList<Actor>
	 * @generated
	 */
	public Adapter createIActorListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link IModelObjectList<Goal> <em>IGoal List</em>}'.
	 * <!-- begin-user-doc --> This default
	 * implementation returns null so that we can easily ignore cases; it's
	 * useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see IModelObjectList<Goal>
	 * @generated
	 */
	public Adapter createIGoalListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link IModelObjectList<Item> <em>IItem List</em>}'.
	 * <!-- begin-user-doc --> This default
	 * implementation returns null so that we can easily ignore cases; it's
	 * useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see IModelObjectList<Item>
	 * @generated
	 */
	public Adapter createIItemListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link IModelObjectList<Evaluator> <em>IEvaluator List</em>}'.
	 * <!-- begin-user-doc --> This
	 * default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases
	 * anyway. <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see IModelObjectList<Evaluator>
	 * @generated
	 */
	public Adapter createIEvaluatorListAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.utils.INamedItem <em>INamed Item</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.utils.INamedItem
	 * @generated
	 */
	public Adapter createINamedItemAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link ms.jasim.framework.IValueProvider <em>IValue Provider</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see ms.jasim.framework.IValueProvider
	 * @generated
	 */
	public Adapter createIValueProviderAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc --> This
	 * default implementation returns null. <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //ModelAdapterFactory
